package com.bjb.vr.common.annotation;

import javax.validation.constraints.NotBlank;
import java.lang.annotation.*;

/**
 * @desc: 删除缓存注解
 * @author: Jingbo Hu<br/>
 * @time：2020年01⽉14⽇<br/>
 * @version：v1.0.0<br>
 */
@Documented
@Inherited
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface InvalidateCache {

    /**
     * 缓存名称
     *
     * @return
     */
    @NotBlank(message = "缓存名称不能为空")
    String cacheName() default "";
}
